﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CharacterTest.Decorator
{
    public class ConcreteDecoratorA : Decorator
    {
        public ConcreteDecoratorA(Component component) : base(component)
        {
        }
        public override void Operation()
        {
            base.Operation();
            AddGem();
            AddFire();
        }

        private void AddFire()
        {
            //throw new NotImplementedException();
            Console.WriteLine("火属性物理攻击");
        }

        private void AddGem()
        {
            //throw new NotImplementedException();
            Console.Write("攻击宝石加成攻击力10  ");

        }
    }
}
